package model.sales;
// Generated Feb 14, 2013 10:33:00 PM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TrsVoidMst generated by hbm2java
 */
@Entity
@Table(name="trs_sales_void", schema="sales")
public class SalesVoid  implements java.io.Serializable {

     private long id;
     private SalesInit salesInit;
     private Date transTime;
     
     private BigDecimal qty;
     private BigDecimal hpp;
     private BigDecimal price;
     private BigDecimal amount;
     private Integer fraksi;
     private String insertedLog;
    
    public SalesVoid() {
    }

    @Id 
    @SequenceGenerator(name="sales_void_seq", sequenceName="sales.trs_sales_void_id_seq", allocationSize=1)
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="sales_void_seq")
    @Column(name="id", unique=true, nullable=false)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="init_id")
    public SalesInit getSalesInit() {
        return salesInit;
    }

    public void setSalesInit(SalesInit salesInit) {
        this.salesInit = salesInit;
    }

    @Temporal(TemporalType.TIME)
    @Column(name="trans_time", length=15)
    public Date getTransTime() {
        return transTime;
    }

    public void setTransTime(Date transTime) {
        this.transTime = transTime;
    }

    @Column(name="qty", precision=13)
    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    @Column(name="hpp", precision=13, scale=2)
    public BigDecimal getHpp() {
        return hpp;
    }

    public void setHpp(BigDecimal hpp) {
        this.hpp = hpp;
    }

    @Column(name="price", precision=13)
    public BigDecimal getPrice() {
        return price;
    }
       
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    @Column(name="amount", precision=13, scale=3)     
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Column(name="fraksi")  
    public Integer getFraksi() {
        return fraksi;
    }

    public void setFraksi(Integer fraksi) {
        this.fraksi = fraksi;
    }

    @Column(name="inserted_log", length=50)
    public String getInsertedLog() {
        return insertedLog;
    }

    public void setInsertedLog(String insertedLog) {
        this.insertedLog = insertedLog;
    }

	


}


